Skip to content

[release/10.0.1xx] Emit NETSDK1202 EOL warning for net9.0-android projects#11349

Open
jonathanpeppers wants to merge 3 commits into
release/10.0.1xxfrom
jonathanpeppers/eol-warning-net9-android
Open

[release/10.0.1xx] Emit NETSDK1202 EOL warning for net9.0-android projects#11349
jonathanpeppers wants to merge 3 commits into
release/10.0.1xxfrom
jonathanpeppers/eol-warning-net9-android

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

Adds an EolWorkload item for net9.0-android so the .NET SDK emits the NETSDK1202 warning when building projects targeting net9.0-android, which has reached end-of-life.

<EolWorkload Include="net9.0-android" Url="https://aka.ms/maui-support-policy" />

This leverages the mechanism introduced in dotnet/sdk#32426.

Note

This change is only needed on release/10.0.1xx. On main (net11), net9.0-android projects already receive a hard error via Eol.targets (which imports for TFV ≤ 8.0 — and net9 will be added to that gate in a future release). On release/10.0.1xx, the net9 SDK is still functional, so we emit a warning rather than an error to give developers time to migrate.

Add an EolWorkload item for net9.0-android so the .NET SDK emits the
NETSDK1202 warning when building projects targeting net9.0-android,
which has reached end-of-life.

See: dotnet/sdk#32426

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers changed the base branch from main to release/10.0.1xx May 14, 2026 15:55
jonathanpeppers and others added 2 commits May 15, 2026 11:59
The NETSDK1202 EOL warning causes AssertHasNoWarnings to fail for
net9.0-android. Disable the EOL workload check in the test since we
are intentionally testing with the EOL TFM.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers force-pushed the jonathanpeppers/eol-warning-net9-android branch from 24bc92f to 751db01 Compare May 15, 2026 20:52
@jonathanpeppers jonathanpeppers marked this pull request as ready for review May 15, 2026 20:53
Copilot AI review requested due to automatic review settings May 15, 2026 20:53
@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label May 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds .NET SDK EOL workload metadata so net9.0-android projects on release/10.0.1xx emit NETSDK1202 as a warning, while adjusting an existing SDK test to avoid failing on the new warning.

Changes:

  • Adds EolWorkload metadata for net9.0-android.
  • Suppresses EOL workload checking in an existing no-warnings test path for net9 Android.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Xamarin.Android.Build.Tasks/Microsoft.NET.Sdk.Android/WorkloadManifest.in.targets Adds the EOL workload item that triggers NETSDK1202 for net9 Android projects.
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs Disables EOL workload checks for net9 in an existing test that asserts no warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants